﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yammu.Core.VirtualFileSystem;

namespace Yammu.Core.MediaManagement
{
    public interface IMediaItem
    {
        /// <summary>
        /// Name of this item (e.g, for c:\media this should be media
        /// </summary>
        string Name { get; }

        /// <summary>
        /// Returns the path excluding this item name e.g.  for c:\ media , this would be c: or for c:\media\file.mp3 this should
        /// return file.mp3 
        /// </summary>
        string Path { get; }

        /// <summary>
        /// Returns the full path e.g., c:\music would return c:\music or for c:\media\file.mp3 this should return c:\media\file.mp3
        /// </summary>
        string FullPath { get; }

        /// <summary>
        /// returns the VFS provider which provides access to this item
        /// </summary>
        IVFSProvider Provider { get; }

        /// <summary>
        /// Returns true if this item is a directory
        /// </summary>
        bool IsDirectory { get; }
    }
}
